﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace UITest
{
	/// <summary>
	/// Interaction logic for IconButton.xaml
	/// </summary>
	public partial class IconButton : UserControl
	{
		public IconButton()
		{
			InitializeComponent();
		}


		private void Control_MouseEnter(object sender, MouseEventArgs e)
		{
			Panel1.Background = SystemColors.HighlightBrush;
		}

		private void Control_MouseLeave(object sender, MouseEventArgs e)
		{
			Panel1.Background = SystemColors.WindowBrush;
		}

		private void Control_MouseDown(object sender, MouseButtonEventArgs e)
		{
			Panel1.Background = SystemColors.ActiveCaptionBrush;
		}

		private void Control_MouseUp(object sender, MouseButtonEventArgs e)
		{
			Panel1.Background = SystemColors.HighlightBrush;
		}

	}
}
